KeyPressed

interface KeyPressed : KeyEvent

An event indicating that a keyboard key has been pressed.

Types

Link copied to clipboard
class Builder
A builder of KeyPressed.

Functions

Link copied to clipboard
open fun keyChar(): Char
Returns the character corresponding to the pressed key or 0 when a keyboard modifier such as Shift, Ctrl, Alt, Command, Win etc.
Link copied to clipboard
open fun keyCode(): KeyCode
Returns the code of the key.
Link copied to clipboard
open fun keyLocation(): KeyLocation
Returns the location of the key on the keyboard.
Link copied to clipboard
Returns the keyboard modifiers applied.
Link copied to clipboard
open fun newBuilder(keyCode: KeyCode): KeyPressed.Builder
Creates a new KeyPressed builder with the given required parameters.